package com.woniuxy.food.client.foodpicclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient(contextId = "foodPicManageClient",name = "food")
public interface FoodPicManageClient {
    @PostMapping("/insertFoodPic")
    public Result insertFoodPic(@RequestParam("storeId")Integer storeId,@RequestParam("file") String file);

    @DeleteMapping("/deleteFoodPic")
    public Result deleteFoodPic(@RequestParam("storeId") Integer storeId,@RequestParam("foodPicId") Integer foodPicId);
}
